﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;
namespace BUS
{
    public class DonHangBUS
    {
        public string TaoMaDHMoi()
        {
            DonHangDAO dao = new DonHangDAO();
            return dao.TaoMaDHMoi();
        }


        public int ThemDonHang(DonHangDTO dhdto)
        {
             DonHangDAO dao = new DonHangDAO();
             return dao.ThemDonHang(dhdto);
        }

        public int HuyDonHang(DonHangDTO dhdto)
        {
            DonHangDAO dao = new DonHangDAO();
            return dao.HuyDonHang(dhdto);
        }
        public List<DonHangDTO> XemDonHang(String bien, String MaKH, ref int soluong)
        {
            DonHangDAO dao = new DonHangDAO();
            return dao.XemDonHang(bien, MaKH, ref soluong);
        }
    }
}
